import React from 'react'
import { Router, Route, browserHistory, IndexRoute/* , Redirect */ } from 'react-router'

import App from '../pages/app/App';
import Login from '../pages/login/Login';
import List from '../pages/list/List';
import My from '../pages/my/My';
import OrgList from '../pages/org/org-list/OrgList';

export default () => (
    <Router history={browserHistory}>
        <Route path="/" component={App}>
            <Route path="/list" component={List}></Route>
            <Route path="/my" component={My}></Route>
            <Route path="org-list" component={OrgList}></Route>
        </Route>
        <Route path="/login" component={Login}></Route>
    </Router>
);